package com.yzjs.localhost.controller.tNeusoftResourceDictionaryAttribute;

import java.util.Arrays;
import java.util.List;
import java.util.Map;

import com.yzjs.common.enumeration.RequestMethod;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import com.yzjs.common.base.entity.PageInfo;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import com.yzjs.localhost.entity.tNeusoftResourceDictionaryAttribute.TNeusoftResourceDictionaryAttributeEntity;
import com.yzjs.localhost.service.tNeusoftResourceDictionaryAttribute.TNeusoftResourceDictionaryAttributeService;




/**
 * 字典查询列属性描述
 *
 * @author yuqiumin
 * @email sunlightcs@gmail.com
 * @date 2021-09-02 10:49:41
 */
@Api(tags = "字典查询列属性描述")
@RestController
@RequestMapping("tNeusoftResourceDictionaryAttribute")
public class TNeusoftResourceDictionaryAttributeController {
    @Autowired
    private TNeusoftResourceDictionaryAttributeService tNeusoftResourceDictionaryAttributeService;





    /**
    * 列表查询
    * @return
    */
    @ApiOperation(value="列表查询" ,httpMethod =RequestMethod.POST )
    @RequestMapping("/list")
    public List<TNeusoftResourceDictionaryAttributeEntity> List( @RequestBody TNeusoftResourceDictionaryAttributeEntity tNeusoftResourceDictionaryAttribute) {

        List<TNeusoftResourceDictionaryAttributeEntity> tNeusoftResourceDictionaryAttributes = tNeusoftResourceDictionaryAttributeService.findList(tNeusoftResourceDictionaryAttribute);
        return tNeusoftResourceDictionaryAttributes;
    }


    /**
     * 分页查询
     * @param tNeusoftResourceDictionaryAttribute
     * @return
     */
    @ApiOperation(value="分页查询" ,httpMethod =RequestMethod.POST )
    @RequestMapping("/listPage")
    public PageInfo<TNeusoftResourceDictionaryAttributeEntity> listPage(@RequestBody TNeusoftResourceDictionaryAttributeEntity tNeusoftResourceDictionaryAttribute) {
        List<TNeusoftResourceDictionaryAttributeEntity> tNeusoftResourceDictionaryAttributes  = tNeusoftResourceDictionaryAttributeService.findList(tNeusoftResourceDictionaryAttribute);
        return new PageInfo<>(tNeusoftResourceDictionaryAttributes ,tNeusoftResourceDictionaryAttribute);
    }




}
